import Types from '../../types';

const defaultState = {
  user: {},
};
export default function onAction(state = defaultState, action) {
  switch (action.type) {
    case Types.LOGIN_BY_PHONE:
      return {
        ...state,
        user: action.user,
      };
    default:
      return state;
  }
}
